import java.util.Scanner;
public class mingan {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一句话");
        String said = sc.next();
        String [] cyuyan ={"cnm","sb","tmd"};
        for (int i = 0; i < cyuyan.length; i++) {
            said =said.replace(cyuyan[i],"***");

        }
        System.out.println(said);
    }
}
